<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml" id="html">
    <head>
        <title></title>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <base href="<?= base_url(1); ?>" />
        <link type="text/css" href="css/main.css?v=<?= $config['version'] ?>" rel="stylesheet" />
    </head>
    <body>
        <?php include(VIEWPATH . 'common/main_header.php'); ?>
        <div class="datalist"><table id="flexigrid" style="display:none"></table></div>
        <script type="text/javascript">
            $(function() {
                $("#flexigrid").flexigrid($.extend(SG.flexOptions, {
                    url: '<?= site_url('datareport/reportbusinessaccount/flexigrid') ?>',
                    colModel: 
                    [
						{display: '<?= translate('DATAREPORT_ID') ?>', name: 'id', width: '80'},
                        {display: '<?= translate('DATAREPORT_CHANNELID') ?>', name: 'channel', width: '100', process: formatSearch},
                        {display: '<?= translate('DATAREPORT_BUSINESS_TWOREMAIN') ?>', name: 'tworemain', width: '100'},
                        {display: '<?= translate('DATAREPORT_BUSINESS_TWOREMAINNUM') ?>', name: 'tworemainnum', width: '100'},
                        {display: '<?= translate('DATAREPORT_BUSINESS_TWOLTV') ?>', name: 'twoLTV', width: '100'},
                        {display: '<?= translate('DATAREPORT_BUSINESS_THREEREMAIN') ?>', name: 'threeremain', width: '100'},
                        {display: '<?= translate('DATAREPORT_BUSINESS_THREEREMAINNUM') ?>', name: 'threeremainnum', width: '100'},
                        {display: '<?= translate('DATAREPORT_BUSINESS_THREELTV') ?>', name: 'threeLTV', width: '100'},
                        {display: '<?= translate('DATAREPORT_BUSINESS_FOURREMAIN') ?>', name: 'fourremain', width: '100'},
                        {display: '<?= translate('DATAREPORT_BUSINESS_FOURREMAINNUM') ?>', name: 'fourremainnum', width: '100'},
                        {display: '<?= translate('DATAREPORT_BUSINESS_FOURLTV') ?>', name: 'fourLTV', width: '100'},
                        {display: '<?= translate('DATAREPORT_BUSINESS_FIVEREMAIN') ?>', name: 'fiveremain', width: '100'},
                        {display: '<?= translate('DATAREPORT_BUSINESS_FIVEREMAINNUM') ?>', name: 'fiveremainnum', width: '100'},
                        {display: '<?= translate('DATAREPORT_BUSINESS_FIVELTV') ?>', name: 'fiveLTV', width: '100'},
                        {display: '<?= translate('DATAREPORT_BUSINESS_SIXREMAIN') ?>', name: 'sixremain', width: '100'},
                        {display: '<?= translate('DATAREPORT_BUSINESS_SIXREMAINNUM') ?>', name: 'sixremainnum', width: '100'},
                        {display: '<?= translate('DATAREPORT_BUSINESS_SIXLTV') ?>', name: 'sixLTV', width: '100'},
                        {display: '<?= translate('DATAREPORT_BUSINESS_SEVENREMAIN') ?>', name: 'sevenremain', width: '100'},
                        {display: '<?= translate('DATAREPORT_BUSINESS_SEVENREMAINNUM') ?>', name: 'sevenremainnum', width: '100'},
                        {display: '<?= translate('DATAREPORT_BUSINESS_SEVENLTV') ?>', name: 'sevenLTV', width: '100'},
                        {display: '<?= translate('DATAREPORT_BUSINESS_FOURTEENREMAIN') ?>', name: 'fourteenremain', width: '100'},
                        {display: '<?= translate('DATAREPORT_BUSINESS_FOURTEENREMAINNUM') ?>', name: 'fourteenremainnum', width: '100'},
                        {display: '<?= translate('DATAREPORT_BUSINESS_FOURTEENLTV') ?>', name: 'fourteenLTV', width: '100'},
                        {display: '<?= translate('DATAREPORT_BUSINESS_MONTHREMAIN') ?>', name: 'monthremain', width: '100'},
                        {display: '<?= translate('DATAREPORT_BUSINESS_MONTHREMAINNUM') ?>', name: 'monthremainnum', width: '100'},
                        {display: '<?= translate('DATAREPORT_BUSINESS_MONTHLTV') ?>', name: 'monthLTV', width: '100'},
                        {display: '<?= translate('DATAREPORT_BUSINESS_WAU') ?>', name: 'wau', width: '100'},
                        {display: '<?= translate('DATAREPORT_BUSINESS_MAU') ?>', name: 'mau', width: '100'},
                        {display: '<?= translate('DATAREPORT_BUSINESS_LOSTBACK') ?>', name: 'lostback', width: '100'},
                        {display: '<?= translate('DATAREPORT_OPERATIONTIME') ?>', name: 'operationtime', width: '150'},
                    ],
		    		buttons: [{name: 'export', displayname: "<?= translate('EXPORT') ?>", bclass: 'export', onpress: multi},,{separator: true}],
                }));                
            });
        </script>
    </body>
</html>